xen: refactor physical address space compression support into common code
authorIan Campbell <ian.campbell@citrix.com>
Wed, 17 Sep 2014 21:21:01 +0000 (22:21 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 22 Sep 2014 16:02:08 +0000 (17:02 +0100)
commite028cedcae2edafb6ba176ec1e8c269346be05bc
tree3281a509791218c3a1ffa16fb4dc7e29f8689631
parent1c92a2aaf8c681efea9a3125e63d45b2d0083abf
xen: refactor physical address space compression support into common code

The "pdx compression" functionality will be useful on ARM as well.

Move the code to common code+header and introduce HAS_PDX to control when it is
built. L2_PAGETABLE_SHIFT is x86 specific, so introduce PDX_GROUP_SHIFT to
abstract it out.

ARM has no need for superpage compression (yet?) and lacks SUPERPAGE_SHIFT so
those functions (spage_to_mfn et al) are not moved.

No affect on x86 and no change for ARM (yet).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/Rules.mk
xen/arch/x86/Rules.mk
xen/arch/x86/mm.c
xen/arch/x86/setup.c
xen/arch/x86/x86_64/mm.c
xen/common/Makefile
xen/common/pdx.c [new file with mode: 0644]
xen/include/asm-x86/mm.h
xen/include/asm-x86/page.h
xen/include/asm-x86/x86_64/page.h
xen/include/xen/pdx.h [new file with mode: 0644]